package com.zpark.resume.service;

import com.zpark.resume.entity.Honor;
import com.zpark.resume.entity.Training;
import com.zpark.resume.exception.*;

import java.util.List;

/**
 * @PackageName: com.zpark.resume.controller
 * @ClassName: IHonorService
 * @Description:
 * @author: RZS
 * @date: 2023/6/1  21:51
 */
public interface IHonorService {

    /**
     * 根据cv的id查询数据
     * @param cvId
     * @return
     */
    List<Honor> findByCvId(Integer cvId);

    // 添加荣誉经历
    Integer addHonor(Honor honor) throws InsertHonorLoseException;

    // 修改荣誉经历
    Integer changeHonorById(Honor honor) throws UpdateHonorLoseException;

    // 删除荣誉经历
    Integer removeHonorById(Integer id) throws DeleteHonorLoseException;
}
